import request from './request'

// 获取当前用户的问诊记录列表
export const getInquiryListApi = () => request.get('/consultation-records/current')

// 创建问诊记录
export const submitInquiryApi = data => request.post('/consultation-records', data)

// 获取问诊记录详情
export const getInquiryDetailApi = (id) => request.get(`/consultation-records/${id}`)

// 后端没有直接的回复接口，如果需要回复，应该是更新问诊记录
// export const replyInquiryApi = (data) => request.post('/inquiry/reply', data)

// 更新问诊记录（包括回复）
export const updateInquiryApi = (id, data) => request.put(`/consultation-records/${id}`, data)

// 删除问诊记录
export const deleteInquiryApi = id => request.delete(`/consultation-records/${id}`) 